package Underworld_Survival;

import java.util.ArrayList;
import java.util.List;

/**
 * 时期配置类（包含候选元素及其概率）
 */
class PeriodConfig<T> {
    private final List<WeightedItem<T>> weightedItem; // 带权重的元素列表
    private int minSelect;           // 最少选择数量
    private int maxSelect;           // 最多选择数量

    public PeriodConfig(List<WeightedItem<T>> weightedItem, int minSelect, int maxSelect) {
        this.weightedItem = new ArrayList<>(weightedItem);
        this.minSelect = minSelect;
        this.maxSelect = maxSelect;
    }

    // Getter方法
    public List<WeightedItem<T>> getWeightedItem() { return weightedItem; }
    public int getMinSelect() { return minSelect; }
    public int getMaxSelect() { return maxSelect; }
}
